<template>
<uni-shadow-root class="view-new-partials-userinfo_header2"><template name="userinfo_header2">

     <block v-if="loginUser">
        <view class="userinfo_header2_container" @click="loginOut">
          <view class="userinfo_header2_headImage_view">
              <image :src="loginUser.platformUser.headimgurl"></image>
          </view>
          <view class="userinfo_header2_headText_view">
            <view> <text>{{loginUser.platformUser.nickname}}</text></view>
            <text>查看并编辑个人资料</text>
          </view>
        </view>
     </block>
     <block v-else>
        <view class="userinfo_header2_container" @click="login">
          <view class="userinfo_header2_headImage_view">
              <image src="https://image1.sansancloud.com/jianzhan/2017_09/24/16/08/58_464.jpg"></image>
          </view>
          <view class="userinfo_header2_headText_view">
            <view>未登录</view>
            <text>登录完成后，才能进行下单操作</text>
          </view>
      </view>
     </block>
     

</template></uni-shadow-root>
</template>

<script>

global['__wxRoute'] = 'view-new/partials/userinfo_header2'

Component({})

export default global['__wxComponents']['view-new/partials/userinfo_header2']
</script>
<style platform="mp-weixin">

</style>